﻿namespace WP7Contrib.Messaging.Tests.ViewModels
{
    using GalaSoft.MvvmLight.Messaging;
    using Messages;

    public sealed class SenderViewModel
    {
        private readonly IMessenger messenger;

        public SenderViewModel(IMessenger messenger)
        {
            this.messenger = messenger;
        }

        public void SendUserMessage(UserMessage userMessage)
        {
            this.messenger.Send(userMessage);
        }

        public void SendUserMessage(UserMessageWithIgnoreReplay userMessage)
        {
            this.messenger.Send(userMessage);
        }
    }
}
